package com.cn.jiyun;


import com.cn.jiyun.entity.pojo.Entertainment;
import com.jiyun.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "entertainment-service")
public interface EntertainmentFeign {

    @GetMapping("/entertainment/findPage")
    public Result<List<Entertainment>> findPage();

    @GetMapping("/entertainment/findById")
    public Result<Entertainment> findById(@RequestParam Integer entertainmentId);
}
